es6 箭頭函數(arrow function) 學習筆記
箭頭函數有兩個好處。☕ 1.他們比傳統函數表達式簡潔。 2.箭頭函數不會綁定關鍵字this,我們不需要用bind()或者that = this這種方法了 和this同 ...
箭頭函數有兩個好處。☕ 1.他們比傳統函數表達式簡潔。 2.箭頭函數不會綁定關鍵字this,我們不需要用bind()或者that = this這種方法了 和this同 ...
arrow function 不會自帶this變量 arrow function 沒有arguments變量 arrow function 有點像c#中的匿名函數 https://develop ...